.class public final LVitxI/jtHon/xDjdg/TFNCP;
.super Ljava/lang/Object;

# interfaces
.implements LVitxI/uCfsH;


# instance fields
.field private final StVit:LVitxI/uNGKw;


# direct methods
.method public constructor <init>(LVitxI/uNGKw;)V
    .locals 0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-object p1, p0, LVitxI/jtHon/xDjdg/TFNCP;->StVit:LVitxI/uNGKw;

    return-void
.end method

.method private uaLTt(Ljava/util/List;)Ljava/lang/String;
    .locals 6

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const/4 v0, 0x0

    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v3

    move v1, v0

    :goto_0
    if-ge v1, v3, :cond_1

    if-lez v1, :cond_0

    const-string v0, "; "

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    :cond_0
    invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, LVitxI/OmYqw;

    invoke-virtual {v0}, LVitxI/OmYqw;->LMTGQ()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const/16 v5, 0x3d

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v0}, LVitxI/OmYqw;->ZagBx()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0

    :cond_1
    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method


# virtual methods
.method public JYYDJ(LVitxI/XEZdo;)LVitxI/AXLbC;
    .locals 8

    const/4 v0, 0x0

    invoke-interface {p1}, LVitxI/XEZdo;->nhQZr()LVitxI/norZp;

    move-result-object v1

    invoke-virtual {v1}, LVitxI/norZp;->kwDPL()LVitxI/QVnCI;

    move-result-object v2

    invoke-virtual {v1}, LVitxI/norZp;->XdNod()LVitxI/Fdsbo;

    move-result-object v3

    if-eqz v3, :cond_1

    invoke-virtual {v3}, LVitxI/Fdsbo;->QvRLS()LVitxI/tANII;

    move-result-object v4

    if-eqz v4, :cond_0

    const-string v5, "Content-Type"

    invoke-virtual {v4}, LVitxI/tANII;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v5, v4}, LVitxI/QVnCI;->bihGN(Ljava/lang/String;Ljava/lang/String;)LVitxI/QVnCI;

    :cond_0
    invoke-virtual {v3}, LVitxI/Fdsbo;->uWzJn()J

    move-result-wide v4

    const-wide/16 v6, -0x1

    cmp-long v3, v4, v6

    if-eqz v3, :cond_8

    const-string v3, "Content-Length"

    invoke-static {v4, v5}, Ljava/lang/Long;->toString(J)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, LVitxI/QVnCI;->bihGN(Ljava/lang/String;Ljava/lang/String;)LVitxI/QVnCI;

    const-string v3, "Transfer-Encoding"

    invoke-virtual {v2, v3}, LVitxI/QVnCI;->yvySA(Ljava/lang/String;)LVitxI/QVnCI;

    :cond_1
    :goto_0
    const-string v3, "Host"

    invoke-virtual {v1, v3}, LVitxI/norZp;->qiOQj(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    if-nez v3, :cond_2

    const-string v3, "Host"

    invoke-virtual {v1}, LVitxI/norZp;->Sxznv()LVitxI/UuIeE;

    move-result-object v4

    invoke-static {v4, v0}, LVitxI/jtHon/AthHa;->sCisD(LVitxI/UuIeE;Z)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, LVitxI/QVnCI;->bihGN(Ljava/lang/String;Ljava/lang/String;)LVitxI/QVnCI;

    :cond_2
    const-string v3, "Connection"

    invoke-virtual {v1, v3}, LVitxI/norZp;->qiOQj(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    if-nez v3, :cond_3

    const-string v3, "Connection"

    const-string v4, "Keep-Alive"

    invoke-virtual {v2, v3, v4}, LVitxI/QVnCI;->bihGN(Ljava/lang/String;Ljava/lang/String;)LVitxI/QVnCI;

    :cond_3
    const-string v3, "Accept-Encoding"

    invoke-virtual {v1, v3}, LVitxI/norZp;->qiOQj(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    if-nez v3, :cond_4

    const/4 v0, 0x1

    const-string v3, "Accept-Encoding"

    const-string v4, "gzip"

    invoke-virtual {v2, v3, v4}, LVitxI/QVnCI;->bihGN(Ljava/lang/String;Ljava/lang/String;)LVitxI/QVnCI;

    :cond_4
    iget-object v3, p0, LVitxI/jtHon/xDjdg/TFNCP;->StVit:LVitxI/uNGKw;

    invoke-virtual {v1}, LVitxI/norZp;->Sxznv()LVitxI/UuIeE;

    move-result-object v4

    invoke-interface {v3, v4}, LVitxI/uNGKw;->IKvCi(LVitxI/UuIeE;)Ljava/util/List;

    move-result-object v3

    invoke-interface {v3}, Ljava/util/List;->isEmpty()Z

    move-result v4

    if-nez v4, :cond_5

    const-string v4, "Cookie"

    invoke-direct {p0, v3}, LVitxI/jtHon/xDjdg/TFNCP;->uaLTt(Ljava/util/List;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v4, v3}, LVitxI/QVnCI;->bihGN(Ljava/lang/String;Ljava/lang/String;)LVitxI/QVnCI;

    :cond_5
    const-string v3, "User-Agent"

    invoke-virtual {v1, v3}, LVitxI/norZp;->qiOQj(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    if-nez v3, :cond_6

    const-string v3, "User-Agent"

    invoke-static {}, LVitxI/jtHon/xmIHy;->TROwe()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, LVitxI/QVnCI;->bihGN(Ljava/lang/String;Ljava/lang/String;)LVitxI/QVnCI;

    :cond_6
    invoke-virtual {v2}, LVitxI/QVnCI;->sKJCZ()LVitxI/norZp;

    move-result-object v2

    invoke-interface {p1, v2}, LVitxI/XEZdo;->qJDKr(LVitxI/norZp;)LVitxI/AXLbC;

    move-result-object v2

    iget-object v3, p0, LVitxI/jtHon/xDjdg/TFNCP;->StVit:LVitxI/uNGKw;

    invoke-virtual {v1}, LVitxI/norZp;->Sxznv()LVitxI/UuIeE;

    move-result-object v4

    invoke-virtual {v2}, LVitxI/AXLbC;->GkFBQ()LVitxI/DCqpo;

    move-result-object v5

    invoke-static {v3, v4, v5}, LVitxI/jtHon/xDjdg/DUOJj;->Kxvwx(LVitxI/uNGKw;LVitxI/UuIeE;LVitxI/DCqpo;)V

    invoke-virtual {v2}, LVitxI/AXLbC;->XQLPT()LVitxI/MUlNx;

    move-result-object v3

    invoke-virtual {v3, v1}, LVitxI/MUlNx;->HOoUV(LVitxI/norZp;)LVitxI/MUlNx;

    move-result-object v1

    if-eqz v0, :cond_7

    const-string v0, "gzip"

    const-string v3, "Content-Encoding"

    invoke-virtual {v2, v3}, LVitxI/AXLbC;->FurDX(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_7

    invoke-static {v2}, LVitxI/jtHon/xDjdg/DUOJj;->UdJbF(LVitxI/AXLbC;)Z

    move-result v0

    if-eqz v0, :cond_7

    new-instance v0, LAEisT/vkuFS;

    invoke-virtual {v2}, LVitxI/AXLbC;->nfnsD()LVitxI/RvsWM;

    move-result-object v3

    invoke-virtual {v3}, LVitxI/RvsWM;->OaZYh()LAEisT/nzTMR;

    move-result-object v3

    invoke-direct {v0, v3}, LAEisT/vkuFS;-><init>(LAEisT/NMUPI;)V

    invoke-virtual {v2}, LVitxI/AXLbC;->GkFBQ()LVitxI/DCqpo;

    move-result-object v2

    invoke-virtual {v2}, LVitxI/DCqpo;->PFAVl()LVitxI/SHjqR;

    move-result-object v2

    const-string v3, "Content-Encoding"

    invoke-virtual {v2, v3}, LVitxI/SHjqR;->JJwCH(Ljava/lang/String;)LVitxI/SHjqR;

    move-result-object v2

    const-string v3, "Content-Length"

    invoke-virtual {v2, v3}, LVitxI/SHjqR;->JJwCH(Ljava/lang/String;)LVitxI/SHjqR;

    move-result-object v2

    invoke-virtual {v2}, LVitxI/SHjqR;->ogGKs()LVitxI/DCqpo;

    move-result-object v2

    invoke-virtual {v1, v2}, LVitxI/MUlNx;->PaHpn(LVitxI/DCqpo;)LVitxI/MUlNx;

    new-instance v3, LVitxI/jtHon/xDjdg/pCgud;

    invoke-static {v0}, LAEisT/PZcQo;->gdBTZ(LAEisT/NMUPI;)LAEisT/nzTMR;

    move-result-object v0

    invoke-direct {v3, v2, v0}, LVitxI/jtHon/xDjdg/pCgud;-><init>(LVitxI/DCqpo;LAEisT/nzTMR;)V

    invoke-virtual {v1, v3}, LVitxI/MUlNx;->GXCqB(LVitxI/RvsWM;)LVitxI/MUlNx;

    :cond_7
    invoke-virtual {v1}, LVitxI/MUlNx;->HBris()LVitxI/AXLbC;

    move-result-object v0

    return-object v0

    :cond_8
    const-string v3, "Transfer-Encoding"

    const-string v4, "chunked"

    invoke-virtual {v2, v3, v4}, LVitxI/QVnCI;->bihGN(Ljava/lang/String;Ljava/lang/String;)LVitxI/QVnCI;

    const-string v3, "Content-Length"

    invoke-virtual {v2, v3}, LVitxI/QVnCI;->yvySA(Ljava/lang/String;)LVitxI/QVnCI;

    goto/16 :goto_0
.end method
